package com.example.docker;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController
public class DockerApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(DockerApplication.class);
    }

    public static void main(String[] args) throws Exception {
        SpringApplication.run(DockerApplication.class, args);
    }

    @RequestMapping("/")
    public String home() {
        return "fuck hah World."
                + "<br />Welcome to <a href='http://xieyongming.top'>waylau.com</a></li>";
    }
}

